import org.w3c.dom.ls.LSOutput;

public class test27 {
    public static void main(String[] args){
        double length1=sum(15,15.5);
        double length2=sum(16,16.5);
      if(length1>length2){
          System.out.println("第一个长方形的周长大");
      }else{
          System.out.println("第二个长方形的周长大");
      }
      }

    public static double sum(double num1,double num2){
        double length=(num1+num2)*2;
        return length;
    }
}

